import 'package:flutter/material.dart';

class SettingPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() => SettingPageState();
}

class SettingPageState extends State{
  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        SizedBox(height:50),
        RaisedButton(
          child: Text('跳转到登录页面'),
          onPressed: () {
            Navigator.pushNamed(context, '/login');
          },
        ),
        SizedBox(height: 50),
        RaisedButton(
          child: Text('跳转到注册页面'),
          onPressed: () {
//            Navigator.pushNamed(context, '/form' ,arguments: {"id": 111111111});
            Navigator.pushNamed(context, '/register');
          },
        ),
      ],
    );
  }
}